package Chapter9;
import java.awt.*;
public class Example09 {
	public static void main(String[] args) {
		final Frame f=new Frame("BorderLayout");
		f.setLayout(new BorderLayout());
		f.setSize(300,300);
		f.setLocation(300, 200);
		f.setVisible(true);
		Button but1=new Button("east");
		Button but2=new Button("south");
		Button but3=new Button("west");
		Button but4=new Button("north");
		Button but5=new Button("center");
		f.add(but1, BorderLayout.EAST);
		f.add(but2, BorderLayout.SOUTH);
		f.add(but3, BorderLayout.WEST);
		f.add(but4, BorderLayout.NORTH);
		f.add(but5, BorderLayout.CENTER);

	}

}
